package com.example.mybatis.vo;

/**
 * Created with IntelliJ IDEA.
 * User: ThinkPad
 * Date: 2021-04-25 19:19
 * This is my work in reachauto code.
 * mail:chenxiangning@reachauto.com
 * Description:
 */

import lombok.Getter;

@Getter
public enum Status {
    /**
     * 操作成功
     */
    OK(200, "操作成功"),

    /**
     * 未知异常
     */
    UNKNOWN_ERROR(500, "服务器出错啦");
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 内容
     */
    private String message;

    Status(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
